import request from '@/utils/request'
export default{

  //1、添加小节
  addVideo(video){
    return request({
      url: '/eduservice/video/addVideo',
      method: 'post',
      data: video
    })
  },

  //2、根据id查询小节
  getVideo(id){
    return request({
      url: '/eduservice/video/getVideoInfo/' + id,
      method: 'get'
    })
  },

  //3、修改小节
  updateVideo(video){
    return request({
      url: '/eduservice/video/updateVideo',
      method: 'post',
      data: video
    })
  },

  //4、删除小节
  deleteVideo(id){
    return request({
      url: '/eduservice/video/' + id,
      method: 'delete'
    })
  },
  
  //5、删除小节阿里云视频
  deleteAlyVideo(id){
    return request({
      url: '/eduvod/video/removeAlyVideo/' + id,
      method: 'delete'
    })
  },

}
